package nccloud.web.uapbd.approvalNCC.action;

import com.alibaba.fastjson.JSONObject;
import nc.itf.uap.pf.IPFMetaModel;
import nccloud.framework.service.ServiceLocator;
import nccloud.framework.web.action.itf.ICommonAction;
import nccloud.framework.web.container.IRequest;
import nc.bs.framework.json.core.exception.ExceptionUtils;
import nccloud.itf.ext.ILcSSOUrlExt;
import nccloud.message.itf.IMessageQueryService;

/**
 * 获取单点登录地址
 */
public class lcSSOUrlCardAction implements ICommonAction {

    @Override
    public Object doAction(IRequest request) {
        JSONObject res = new JSONObject();
        try {
            JSONObject root = JSONObject.parseObject(request.read());
            String pk_wf_messagemeta=root.getString("pk_wf_messagemeta");//流程消息组件

            ILcSSOUrlExt iLcSSOUrlExt = (ILcSSOUrlExt)ServiceLocator.find(ILcSSOUrlExt.class);

            res=iLcSSOUrlExt.getSSOUrlInfo(pk_wf_messagemeta);


        } catch (Throwable e) {
            ExceptionUtils.wrapException(e);
        }
        return res;
    }

}
